package com.atguigu.eduservice.controller;

import com.atguigu.commonutils.R;
import org.springframework.web.bind.annotation.*;

/**
 * @author summer
 * @date 2020/4/20 - 11:53
 */
@RestController
//@CrossOrigin
@RequestMapping("/eduservice/user")
public class EduLoginController {
    @PostMapping("/login")
    public R  login(){
        return R.ok().data("token","admin");
    }
    @GetMapping("/info")
    public  R info(){
        return R.ok().data("roles","[admin]").data("name","summer").data("avatar","http://www.520touxiang.com/uploads/allimg/202004101232/s1lw5tdgsie.jpg");
    }
}
